﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Security.AccessControl;
using System.Text;
using System.Threading.Tasks;

namespace BusinessEntity
{
    [Serializable]
    public class Department
    {
        public string DeptId { get; set; }
        public string FullName { get; set; }
        public string ParentId { get; set; }
        public string Status { get; set; }
        private List<Department> children;

        public List<Department> Children
        {
            get { return children ?? (children = new List<Department>()); }
            set
            {
                children = value;
            }
        } 
    }


}
